<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.grep.extra.dao.impl.TaskDAOSQL"%>
<%
	request.setCharacterEncoding("UTF-8");

	TaskDAOSQL taskdaosql = new TaskDAOSQL();

	String taskid = request.getParameter("taskid");
	String task_name = request.getParameter("taskname");
	String task_desc = request.getParameter("taskdesc");
	String task_policy = request.getParameter("taskpolicy");
	String task_analyse = request.getParameter("taskanalyse");

	String modifsql = "update site_tasks set task_name='" + task_name
			+ "',task_desc='" + task_desc + "',task_policy='"
			+ task_policy + "',task_analyse='" + task_analyse
			+ "' where id='" + taskid + "'";

	boolean issuccess = taskdaosql.insertTask(modifsql);
	if (issuccess) {
		response.getWriter().println("修改成功");
	} else {
		response.getWriter().println("修改失败");
	}
%>